package vn.edu.saigontech.ncms.model.system;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import org.hibernate.annotations.OptimisticLockType;

import vn.edu.saigontech.ncms.model.BaseEntity;

@Entity
@org.hibernate.annotations.Entity(dynamicInsert = true, dynamicUpdate = true, optimisticLock = OptimisticLockType.ALL)
@Table(name = "ncms_parameter")
@SuppressWarnings("serial")
public class Parameter extends BaseEntity {
	public static final String PCL = "PCL";
	public static final String LEP = "LEP";
	public static final String ACC = "ACC";
	public static final String RPT = "RPT";
	public static final String BSR = "BSR";
	public static final String DRPT = "DRPT";
	public static final String RRP = "RRP";
	public static final String ACC_BS_MONTHLY = "ACC_BS_MONTHLY";

	@Column(name = "name", nullable = false, unique = true)
	private String name;

	@Column(name = "value")
	private String value;

	@Column(name = "is_number")
	private Boolean isNumber = false;

	@Column(name = "visible")
	private Boolean visible;

	@Column(name = "comment", length = 4000)
	private String comment;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public Boolean getIsNumber() {
		return isNumber;
	}

	public void setIsNumber(Boolean isNumber) {
		this.isNumber = isNumber;
	}

	public Boolean getVisible() {
		return visible;
	}

	public void setVisible(Boolean visible) {
		this.visible = visible;
	}
}